<?php

class Admin_Controllers_Customer extends Libs_Controller {

    public function __construct() {
        parent::__construct();
    }

    public function index() {
        $cus = new Admin_Models_Customer();
        $this->view->customer = $cus->getAllCustomer();
        $this->view->render('customer/index');
    }

    public function delCus($cus_id) {
        $cus = new Admin_Models_Customer();
        $cus->delCustomer($cus_id);

        header("Location: " . URL_BASE . "/admin/customer");
    }

}
